package com.ldc.service.service;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ldc.model.SysUser;

import java.util.List;

/**
 * 功能说明
 *
 * @auther liudc
 * @since 2023/6/11
 */
public interface UserService extends IService<SysUser> {

    SysUser findByUserName(String userName);

    SysUser findByUserId(String userId);

    SysUser findBy(LambdaQueryWrapper<SysUser> queryWrapper);

    int deleteByUserId(String userId);

    int deleteBy(LambdaQueryWrapper<SysUser> queryWrapper);


    IPage<SysUser> findPageBy(IPage<SysUser> page, LambdaQueryWrapper<SysUser> queryWrapper);

    IPage<SysUser> findPageByPageQuery(long page, long offset, String query);

    List<SysUser> findListBy(LambdaQueryWrapper<SysUser> queryWrapper);

    List<SysUser> findListByIds(List<Long> ids);

    List<Long> getUserIds(List<Long> ids);

    int batchDeleteBy(LambdaQueryWrapper<SysUser> queryWrapper);

    int batchDeleteByIds(List<Long> ids);

}
